<!-- OGN -->
<?php 
require_once ("config/web.init.php");
require_once ("config/web.config.php");
require_once ("base_init.php");
	
?>

<?php
$userLoggedIn = "USER_LOGGED_IN";
$userName = "";
$fullName = "";
$userAuthFlag = false;
if (Security::sessionExists("$userLoggedIn") ) {
	$userName = Security::getSession("$userLoggedIn");
	$userAuthFlag = true;
} else if (Security::cookieExists("$userLoggedIn")) {
	$userName = Security::getCookie("$userLoggedIn");
	$userAuthFlag = true;
} else {
	header("Location: index.php");
}

if ($userAuthFlag) {
	$UserMgr = new UserMgr();
	$recordX = $UserMgr->getDetails("$userName");
	$fullName = $recordX["fullName"];
}

$pageTitle = "OGN: HomePage";
?>
<html>
<head>
<title><?php echo $pageTitle;?></title>

</head>
<body>

<!-- Main:Table -->
<table border='0' cellspacing='0' cellpadding='0' height='100%' width='100%' valign='center' align='center'>
<!-- Header -->
<tr>
	<td colspan='1' valign='' align='left' width='10%' height='10%'></td>
	<td colspan='1' valign='' align='left' width='60%' height='10%'>
	<h1>OGN</h1><?php echo $userName;?>
	</td>
	<td colspan='1' valign='bottom' align='right' width='20%' height='10%'>
		<table border='0' cellspacing='0' cellpadding='0' height='100%' width='100%' valign='center' align='center'>
		<tr>
			<td colspan='1' valign='bottom' align='right' width='100%' height='50%'>
			&nbsp;
			<a href="homePage.php">Home</a>
			&nbsp;
			Profile
			&nbsp;
			<a href="logout.php">Logout</a>&nbsp;&nbsp;&nbsp;
			</td>
		</tr>
		<tr>
			<td colspan='1' valign='bottom' align='right' width='100%' height='50%'>
			
			</td>
		</tr>
		
		</table>
	</td>
	<td colspan='1' valign='' align='left' width='10%' height='10%'></td>
</tr>
<tr>
	<td colspan='1' valign='' align='left' width='10%' height='80%'></td>
	<td colspan='2' valign='center' align='left' width='80%' height='80%'>
	<!-- Center:Table -->
			<table border='0' cellspacing='0' cellpadding='0' height='100%' width='100%' valign='center' align='center'>
				<!-- Header -->
				<tr>
					<td colspan='3' valign='' align='left' width='100%' height='2%'></td>
				</tr>
				<tr>
					<td colspan='3' valign='' align='left' width='100%' height='6%'>
					&nbsp;<a href=''>Home</a>&nbsp;|&nbsp;<a href=''>Apps</a>&nbsp;|&nbsp;<a href=''>System</a>
					</td>
				</tr>
				<tr>
					<td colspan='3' valign='' align='left' width='100%' height='5%'>
					&nbsp;<a href=''>Home</a>&nbsp;|&nbsp;<a href=''>Apps</a>&nbsp;|&nbsp;<a href=''>System</a>
					</td>
				</tr>
				<tr>
					<td colspan='3' valign='' align='left' width='100%' height='1%'></td>
				</tr>
				<tr>
					<td colspan='3' valign='' align='left' width='100%' height='80%'>
						<!-- Home:Table -->
						<table border='0' cellspacing='0' cellpadding='0' height='100%' width='100%' valign='center' align='center'>
						<!-- Header -->
						<tr>
							<td colspan='2' valign='' align='left' width='15%' height='10%'></td>
							<td colspan='1' valign='' align='left' width='1%' height='10%'></td>
							<td colspan='1' valign='' align='left' width='64%' height='10%'>
							<h3>PAGE HEADING</h3>
							</td>
							<td colspan='1' valign='' align='left' width='20%' height='10%'></td>
						</tr>
						<tr>
							<td colspan='2' valign='' align='left' width='15%' height='10%'></td>
							<td colspan='1' valign='' align='left' width='1%' height='10%'></td>
							<td colspan='1' valign='' align='left' width='64%' height='80%'>
								<!-- Navigation and Content -->
								<table border='0' cellspacing='0' cellpadding='0' height='100%' width='100%' valign='center' align='center'>
								<tr>
									<td colspan='1' valign='' align='left' width='100%' height='10%'>Profile</td>
								</tr>
								<tr>
									<td colspan='1' valign='' align='left' width='100%' >
									<!-- DISPLAY -->
									<table border='0' cellspacing='0' cellpadding='0' height='100%' width='100%' valign='center' align='center'>
									<tr>
										<td colspan='2' valign='' align='left' width='100%' height='4%'></td>
									</tr>
									<tr>
										<td colspan='1' valign='' align='left' width='70%' height='100%'>
											<table border='0' cellspacing='0' cellpadding='0' height='100%' width='100%' valign='center' align='center'>
											<tr>
												<td colspan='1' valign='' align='right' width='30%' height='4%'>Full Name</td>
												<td colspan='1' valign='' align='left' width='70%' height='4%'><?php echo $fullName?></td>
											</tr>
											<tr>
												<td colspan='1' valign='' align='right' width='30%' height='4%'>Email Address</td>
												<td colspan='1' valign='' align='left' width='70%' height='4%'><?php echo $userName?>;</td>
											</tr>
											<tr>
												<td colspan='1' valign='' align='right' width='30%' height='4%'>Profile</td>
												<td colspan='1' valign='' align='left' width='70%' height='4%'></td>
											</tr>
											<tr>
												<td colspan='1' valign='' align='right' width='30%' height='4%'>Full Name</td>
												<td colspan='1' valign='' align='left' width='70%' height='4%'><?php echo $fullName?></td>
											</tr>
											<tr>
												<td colspan='1' valign='' align='right' width='30%' height='4%'>Email Address</td>
												<td colspan='1' valign='' align='left' width='70%' height='4%'><?php echo $userName?>;</td>
											</tr>
											<tr>
												<td colspan='1' valign='' align='right' width='30%' height='4%'>Profile</td>
												<td colspan='1' valign='' align='left' width='70%' height='4%'></td>
											</tr>
											<tr>
												<td colspan='1' valign='' align='right' width='30%' height='4%'>Full Name</td>
												<td colspan='1' valign='' align='left' width='70%' height='4%'><?php echo $fullName?></td>
											</tr>
											<tr>
												<td colspan='1' valign='' align='right' width='30%' height='4%'>Email Address</td>
												<td colspan='1' valign='' align='left' width='70%' height='4%'><?php echo $userName?>;</td>
											</tr>
											<tr>
												<td colspan='1' valign='' align='right' width='30%' height='4%'>Profile</td>
												<td colspan='1' valign='' align='left' width='70%' height='4%'></td>
											</tr>
											</table>
										</td>
										<td colspan='1' valign='' align='center' width='30%' height='100%'>
										
										</td>
									</tr>
									</table>
									<!-- DISPLAY-->
									</td>
								</tr>
								<tr>
									<td colspan='1' valign='' align='left' width='100%' height='5%'></td>
								</tr>
								</table>
								<!-- End Navigation and Content -->
							</td>
							<td colspan='1' valign='' align='left' width='20%' height='80%'></td>
						</tr>
						<!-- Footer -->
						<tr>
							<td colspan='2' valign='' align='left' width='15%' height='10%'></td>
							<td colspan='1' valign='' align='left' width='1%' height='10%'></td>
							<td colspan='1' valign='' align='left' width='64%' height='10%'></td>
							<td colspan='1' valign='' align='left' width='20%' height='10%'></td>
						</tr>
						</table>
						<!-- Home:Table -->
					</td>
				</tr>
				<!-- Footer -->
				<tr>
					<td colspan='1' valign='' align='left' width='10%' height='6%'></td>
					<td colspan='1' valign='' align='left' width='80%' height='6%'></td>
					<td colspan='1' valign='' align='left' width='10%' height='6%'></td>
				</tr>
				</table>
			<!-- Center:Table -->
			</td>
			<td colspan='1' valign='' align='left' width='10%' height='80%'></td>
		</tr>
		
		
<!-- Footer -->
<tr>
	<td colspan='1' valign='' align='left' width='10%' height='10%'></td>
	<td colspan='2' valign='' align='left' width='80%' height='10%'>
	<?php include_once("footer.php"); ?>
	</td>
	<td colspan='1' valign='' align='left' width='10%' height='10%'></td>
</tr>
</table>
<!-- Main:Table -->
</body>
</html>